<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand" />  
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" type="text/css" href="layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="css/index.css"/>
    <title>设备编辑</title>
  </head>

  <body>
  	<section class="layui-larry-box">
			<div class="larry-personal">
				<div class="layui-tab">
					<blockquote class="layui-elem-quote mylog-info-tit">
						<ul class="handle-box">
							<li class="handle-item">
								编号：<span id="deviceNo" name="deviceNo"></span>
							</li>
							<li class="handle-item">
								型号：<span id="deviceModel" name="deviceModel"></span>
								类型：<span id="deviceType" name="deviceType"></span>
								固件版本：<span id="deviceVersion" name="deviceVersion"></span>
								添加时间：<span id="createTime" name="createTime"></span>
							</li>
						</ul>
					</blockquote>
					<div class="layui-clear">
						<label class="layui-form-label" style="font-weight:bold;">设备详情</label>
						<div class="tableTools fr">
							<span class="fr">
								<a class="layui-btn btn-add btn-default" id="button-keep">保存详情</a>
							</span>
						</div>
					</div>
					<div class="layui-clear" stlye="padding-top:5px;">
						<form class="layui-form" id="form-one" action="">
							<input type="hidden" id="deviceId" name="deviceId"/>
							<div class="layui-form-item" >
							    <div class="layui-inline">
							      <label class="layui-form-label">设备名称</label>
							      <div class="layui-input-inline">
							        <input type="text" name="deviceName" id="deviceName" lay-verify="address" placeholder="请输入设备名称" autocomplete="off" class="layui-input" />
							      </div>
							    </div>
							    <div class="layui-inline">
							      <label class="layui-form-label">应用场景</label>
							      <div class="layui-input-inline">
							        <select name="sceneId" id="sceneId" lay-verify="required" lay-search="">
												<option value=""></option>
												<option value="1">常温库</option>
												<option value="2">阴凉库</option>
												<option value="3">冷藏库</option>
												<option value="4">冷藏车</option>
												<option value="5">冷藏箱</option>
												<option value="6">医用冰箱</option>
												<option value="0">其他</option>
							        </select>
							      </div>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">设备地址</label>
								<div class="layui-input-block">
									<input type="text" name="deviceAddress" id="deviceAddress" lay-verify="address" autocomplete="off" placeholder="请选择地址" class="layui-inputaaa">
									<!--<a class="layui-btn layui-btn-primary layui-btn-small" id="map">
										<i class="layui-icon">&#xe654;</i>
									</a>-->
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">检测位置</label>
								<div class="layui-input-block">
							        <input type="text" name="monitorPosition" id="monitorPosition" lay-verify="address" placeholder="请输入检测位置" autocomplete="off" class="layui-input" >
							      </div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">备注</label>
								<div class="layui-input-block">
									<textarea name="deviceDesc" id="deviceDesc" placeholder="请输入内容" class="layui-textarea" ></textarea>
								</div>
							</div>
						</form>
					</div>
					<!--<div class="layui-clear">
						<label class="layui-form-label" style="font-weight:bold;">配置参数</label>
						<div class="tableTools fr">
							<span class="fr">
								<a class="layui-btn btn-add btn-default" lay-submit id="button-two">保存配置</a>
							</span>
						</div>
					</div>
					<div class="layui-clear">
						<form class="layui-form" id="form-two" action="">
						<input type="hidden" id="deviceId" name="deviceId"/>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width: 150px;">上传间隔（分钟）</label>
							<div class="layui-input-inline" style="width: 60%;">
								<input type="text" name="step" id="step" placeholder="2" autocomplete="off" class="layui-input" onchange="much()"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width: 150px;">报警间隔（分钟）</label>
							<div class="layui-input-inline" style="width: 60%;">
								<input type="text" name="alarmStep" id="alarmStep" placeholder="10" autocomplete="off" class="layui-input" onchange="muchs()"/>
							</div>
						</div>
						<label class="layui-form-label" style="width: 150px; font-weight:bold;">通道一</label>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width: 150px;">温度上下限</label>
							<div class="layui-input-block">
								<input type="text" name="temMinCh1" id="temMinCh1" placeholder="下限" class="layui-inputs" onchange="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
								<input type="text" name="temMaxCh1" id="temMaxCh1" placeholder="上限" class="layui-inputs" onchange="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width: 150px;">湿度上下限</label>
							<div class="layui-input-block">
								<input type="text" name="humMinCh1" id="humMinCh1" placeholder="下限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
								<input type="text" name="humMaxCh1" id="humMaxCh1" placeholder="上限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label" style="width: 150px;">温度矫正</label>
							<div class="layui-input-block">
								<span style="color: red; padding-right: 52px;">范围-5~5，默认0</span>
								<input type="text" name="temAdjustCh1" id="temAdjustCh1" placeholder="0" autocomplete="off" class="layui-inputs" onchange="value=/^([0-5]?|5)$|^-([0-5]?|5)$/.test(value)?value:''">
							</div>
							<label class="layui-form-label" style="width: 150px; font-weight:bold;">通道二</label>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">温度上下限</label>
								<div class="layui-input-block">
									<input type="text" name="temMinCh2" id="temMinCh2" placeholder="下限" class="layui-inputs" onchange="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
									<input type="text" name="temMaxCh2" id="temMaxCh2" placeholder="上限" class="layui-inputs" onchange="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">湿度上下限</label>
								<div class="layui-input-block">
									<input type="text" name="humMinCh2" id="humMinCh2" placeholder="下限" autocomplete="off" class="layui-inputs"onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
									<input type="text" name="humMaxCh2" id="humMaxCh2" placeholder="上限" autocomplete="off" class="layui-inputs"onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">温度矫正</label>
								<div class="layui-input-block">
									<span style="color: red;padding-right: 52px;">范围-5~5，默认0</span>
									<input type="text" name="temAdjustCh2" id="temAdjustCh2" placeholder="0" autocomplete="off" class="layui-inputs" onchange="value=/^([0-5]?|5)$|^-([0-5]?|5)$/.test(value)?value:''">
								</div>
							</div>
							<div class="layui-form-item">
							   <label class="layui-form-label" style="width: 150px;">开启离线报警</label>
							    <div class="layui-input-block">
							        <input type="radio" name="offlineAlarmStr" id="onofflineAlarm" value="on" title="是">
									<input type="radio" name="offlineAlarmStr" id="offofflineAlarm" value="off" title="否" checked>
							    </div>
							</div>
							<div class="layui-form-item">
							   <label class="layui-form-label" style="width: 150px;">开启超限报警</label>
							    <div class="layui-input-block">
							        <input type="radio" name="overrunAlarmStr" id="onoverrunAlarm" value="on" title="是">
									<input type="radio" name="overrunAlarmStr" id="offoverrunAlarm" value="off" title="否" checked>
							    </div>
							</div>
							<div class="layui-form-item">
							   <label class="layui-form-label" style="width: 150px;">开启故障报警</label>
							    <div class="layui-input-block">
							        <input type="radio" name="brokenAlarmStr" id="onbrokenAlarm" value="on" title="是">
									<input type="radio" name="brokenAlarmStr" id="offbrokenAlarm" value="off" title="否" checked>
							    </div>
							</div>
							<div class="layui-form-item">
							   <label class="layui-form-label" style="width: 150px;">开启电池故障报警</label>
							    <div class="layui-input-block">
							        <input type="radio" name="batteryAlarmStr" id="onbatteryAlarm" value="on" title="是">
									<input type="radio" name="batteryAlarmStr" id="offbatteryAlarm" value="off" title="否" checked>
							    </div>
							</div>
					</form>
					</div>-->
				</div>
			</div>
		</section>
		
<script type="text/javascript" src="//cdn.bootcss.com/jquery/2.2.3/jquery.js"></script>
		<script src="layui/layui.js"></script>
		<script src="js/common.js"></script>
		<script src="js/facillityCompile.js"></script>
  </body>

</html>